home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / pascal / xlib.zip / XDRIVE.DOC < prev    next >
Text File  |  1992-09-05  |  2KB  |  64 lines

  1.  
  2.                                 XDrive
  3.                                 ------
  4.  
  5. This unit give you object-oriented access to the drives in your computer.
  6.  
  7.  
  8. TDrive
  9. ~~~~~
  10.  
  11. "TDrive" implements a general object for drive acces and information.
  12.  
  13.  Fields:
  14.  -------
  15.  Drv      : Char         The Drive itself. For example C:
  16.  
  17.  Methods
  18.  -------
  19.  constructor Init( ADrv:Char );
  20.    Initialize the object for a given drive. ADrv can be ranged from
  21.    'A' to 'Z'.
  22.  
  23.  constructor InitProgramDrive;
  24.    Initialize the object for the drive on which the program was located.
  25.  
  26.  constructor InitCurrentDrive;
  27.    Initialize the object for the current drive
  28.  
  29.  constructor InitBootDrive;
  30.    Initialize the object for the drive from which were booted. This
  31.    constructor use an undocumented call, so be carefully withit !
  32.  
  33.  function    GetCode:Byte;     virtual;
  34.    Return a code for the drive that can be used by many DOS functions.
  35.    Can be range from 0 to 25. Calculated by subtract 65 from the
  36.    Drv alpha.
  37.  
  38.  function    GetPlace:Longint; virtual;
  39.    Return the place which is free on the drive. Value is in bytes
  40.  
  41.  function    GetSize:Longint;  virtual;
  42.    Return the total size which is aviable to the drive. By subtract
  43.    the GetPlace value from this value you can get the bytes that
  44.    are stored on the drive.
  45.  
  46.  function    GetLabel:PathStr; virtual;
  47.     Return the label of the drive if exists
  48.  
  49.  function    Exists:Boolean;   virtual;
  50.     Look if drive exists in that environment
  51.  
  52.  function    IsClosed:Boolean; virtual;
  53.     Check if drives is closed. Make sense only on floppy-drives
  54.  
  55.  function    IsOnNet:Boolean;  virtual;
  56.     Check if the drive is a network drive. For this method a
  57.     IOCTL function would be used.
  58.  
  59.  procedure   Reset;            virtual;
  60.     Reset the drive. Can be neccessary for some type of
  61.     copy-operations on floppy-drives.
  62.  
  63.  
  64.